Skip to content

feat(table): function for choosing how to encode empty table values - #84

Closed
davydog187 wants to merge 2 commits into
mainfrom
encode-empty
Closed

davydog187 wants to merge 2 commits into
mainfrom
encode-empty

Conversation

@davydog187

Copy link
Copy Markdown
Contributor

Closes #83

@davydog187
davydog187 marked this pull request as ready for review June 4, 2025 11:35
Comment thread lib/lua/table.ex
do_deep_cast(value, Keyword.fetch!(opts, :empty_encoder))
end

defp do_deep_cast(value, empty_encoder) do

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to handle top level keys / maps

@davydog187

Copy link
Copy Markdown
Contributor Author

Will come back to this later.

@davydog187 davydog187 closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deepcast empty table to empty list

1 participant